home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_04
/
8n04051a
< prev
next >
Wrap
Text File
|
1990-03-18
|
573b
|
27 lines
*****Listing 1*****
#include <stdio.h>
main()
{
char real_array[20];
printf("Realarray can hold %d chars.", sizeof(real_array));
getarray(real_array);
}
void getarray(passed_array)
char passed_array[];
{
printf("\nPassedarray can hold %d chars.",
sizeof(passed_array));
}
---------------------------------------------------------------
Results : (under Power C and Instant C)
Realarray can hold 20 chars.
Passedarray can hold 2 chars.
---------------------------------------------------------------